@using MvcCms.Service.Helpers

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>@ViewBag.Title</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link rel="shortcut icon" href="/Content/images/favicon.ico" />

    <link href="@Url.Content("/razorthemes/backoffice/css/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("/Content/superfish/superfish.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("/Content/superfish/superfish-navbar.css")" rel="stylesheet" type="text/css" />        

    @RenderSection("HtmlHead", false)
</head>
<body>
    <div class="header-container">
        <div class="logo">
            <a href="@Url.Action("Index", "Home")">
                <img alt="logo" src="/content/app_themes/backoffice/images/logosm.gif" /></a></div>
        <div class="nav-main">
            <div>
                <div>
                    <div class="left">
                    </div>
                    <div class="search">
                        <input type="text" onkeypress="checkSearch(event)" onfocus="ClearSearchBox()" value="Search Text"
                            id="searchbox" />
                        <input class="gobutton" onclick="SetSearch()" type="button" id="btnSearch" value="Go" />
                    </div>
                    <div class="clear">
                    </div>
                </div>
                <div>
                    <div class="nav-left">
                    </div>
                    <div class="nav-right">
                        <ul class="sf-menu sf-navbar">
                             @Html.Partial("ControlsNav/TopNavControl", Html.GetTopNav()); 
                        </ul>
                    </div>
                    <div class="clear">
                    </div>
                </div>
            </div>
        </div>
        <div class="clear">
        </div>
    </div>
    <div class="content-container">
        <div id="roundme1" class="content-container-inner">
            <div >
                <div id="roundme2" class="content-main">
                    @RenderBody()
                </div>
                <div id="roundme3" class="content-right">
                    <div class="thecontent_sidebar">
                        <div class="spacer_top">
                        </div>
                        <div>
                            <div class="side-bucket">
                                <div class="side-bucket-top">
                                </div>
                                  @Html.Partial("ControlsSidebar/CatSidebar")
                                  @{
                                  if (Roles.IsUserInRole("PortalAdmin"))
                                  {
                                      Html.RenderPartial("ControlsSidebar/PortalAdminSidebar");
                                  } 
                                  if (Roles.IsUserInRole("Admin"))
                                  {
                                      Html.RenderPartial("ControlsSidebar/AdminSidebar");
                                  }
                                  if (Roles.IsUserInRole("Editor"))
                                  {
                                      Html.RenderPartial("ControlsSidebar/EditorSidebar");
                                  }
                                  if (Roles.IsUserInRole("Contributor"))
                                  {
                                      Html.RenderPartial("ControlsSidebar/ContributorSidebar");
                                  }
                                  }
                                  @Html.Partial("ControlsSidebar/UserSidebar")
                                
                                <div class="side-bucket-bottom">
                                </div>
                            </div>
                        </div>
                        @RenderSection("SideBar", false)       
                        <div id="modules-sidebar" class="modules-sidebar">
                        </div>
                        <div id="modules-rss" class="modules-sidebar">
                        </div>
                        <div class="spacer">
                        </div>
                    </div>
                </div>
                <div class="clear">
                </div>
            </div>
        </div>
        &nbsp;
        <div class="nav-footer-container">
            <div class="nav-footer">
                <p class="copyright">
                    &copy;
                    @Html.GetCurrentPortalName()</p>
                 @Html.Partial("ControlsNav/Nav"); 
            </div>
        </div>
    </div>
    <script src="@Url.Content("/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>    
    <script src="@Url.Content("/Scripts/json2005.js")" type="text/javascript"></script>    
    <script src="@Url.Content("/Scripts/hoverIntent.js")" type="text/javascript"></script>    
    <script src="@Url.Content("/Scripts/superfish.js")" type="text/javascript"></script>    
    <script src="@Url.Content("/Scripts/MvcCms.js")" type="text/javascript"></script>    
    <script src="@Url.Content("/Scripts/cookies.js")" type="text/javascript"></script>    
    <script type="text/javascript">
        $(document).ready(function () {
            $("ul.sf-menu").superfish({
                pathClass: 'active'
            });
        });            
    </script>
    @RenderSection("ScriptContent", false)
</body>
</html>
